package com.example.demo.entity;

import lombok.Data;


@Data
public class users {
    private int id;
    private String name;//姓名
    private String birthday;//生日
    private String gender;//性别
    private String nickname;//昵称
    private String autograph;//简介，签名
    private String password;//密码
    private String mailbox;//邮箱，登录账号
    private String firstlinecode;//写出第一行代码的时间
    private int grade;//等级

    @Override
    public String toString() {
        return "{\"users\":{"
                + "\"id\":"
                + id
                + ",\"name\":\""
                + name + '\"'
                + ",\"birthday\":\""
                + birthday + '\"'
                + ",\"gender\":\""
                + gender + '\"'
                + ",\"nickname\":\""
                + nickname + '\"'
                + ",\"autograph\":\""
                + autograph + '\"'
                + ",\"password\":\""
                + password + '\"'
                + ",\"mailbox\":\""
                + mailbox + '\"'
                + ",\"firstlinecode\":\""
                + firstlinecode + '\"'
                + ",\"grade\":"
                + grade
                + "}}";

    }
}
